package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author pan
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmEarlyWarningDiscern对象", description="")
public class CrmEarlyWarningDiscern implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty("类型名称")
    @TableField("discern_name")
    private String discernName;

    @ApiModelProperty("描述")
    @TableField("discern_description")
    private String discernDescription;

    @ApiModelProperty("预警对象")
    @TableField("early_warning_obj")
    private Long earlyWarningObj;

    @ApiModelProperty("预警模式ID")
    @TableField("early_warning_model_id")
    private Long earlyWarningModelId;

    @ApiModelProperty("提醒对象ID")
    @TableField("remind_obj_id")
    private String remindObjId;

    @ApiModelProperty("存储Json数据")
    @TableField("template_data")
    private String templateData;

    @ApiModelProperty("创建人")
    @TableField("create_user_id")
    private String createUserId;

    @ApiModelProperty(value = "创建时间", required = false)
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间", required = false)
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no", required = false)
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

}
